package com.admin.persistence.sys.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * <p>
 *
 * </p>
 *
 * @author jack
 * @since 2019-05-01
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("sys_user")
public class User implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId("ID")
    private String id;

    @TableField("ACCOUNT")
    private String account;

    @TableField("PWD")
    private String pwd;

    @TableField("STATUS")
    private Integer status;


    public User() {
        super();
    }

    public User(String id, String account, String pwd, Integer status) {
        this.id = id;
        this.account = account;
        this.pwd = pwd;
        this.status = status;
    }

    @Override
    public String toString() {
        return "{" +
                "id='" + id + '\'' +
                ", account='" + account + '\'' +
                ", pwd='" + pwd + '\'' +
                ", status=" + status +
                '}';
    }
}
